tools/ocaml: GC parameter tuning
authorEdwin Török <edvin.torok@citrix.com>
Wed, 12 Oct 2022 18:13:07 +0000 (19:13 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Nov 2022 14:07:24 +0000 (14:07 +0000)
commita63bbcf5318b487ca86574d7fcf916958af5ed02
tree31bc21e3c1f4791c437ad00869945a128f0c9eda
parentab21bb1971a7fa9308053b0686f43277f6e8a6c9
tools/ocaml: GC parameter tuning

By default the OCaml garbage collector would return memory to the OS only
after unused memory is 5x live memory.  Tweak this to 120% instead, which
would match the major GC speed.

This is part of XSA-326.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
(cherry picked from commit 4a8bacff20b857ca0d628ef5525877ade11f2a42)
tools/ocaml/xenstored/define.ml
tools/ocaml/xenstored/xenstored.ml